package com.cal.utms.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * The persistent class for the customer_bank_account database table.
 * 
 */
@Entity
@Table(name = "customer_bank_account")
@NamedQuery(name = "CustomerBankAccount.findAll", query = "SELECT c FROM CustomerBankAccount c")
public class CustomerBankAccount implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;

	@Column(name = "ACCOUNT_NO")
	private String accountNo;

	@Column(name = "BRANCH")
	private String branch;

	@Column(name = "NAME_OF_BANK")
	private String nameOfBank;

	@ManyToOne
	@JoinColumn(name="CUSTOMER_ID")
	private Customer customer;

	public CustomerBankAccount() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAccountNo() {
		return this.accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	public String getBranch() {
		return this.branch;
	}

	public void setBranch(String branch) {
		this.branch = branch;
	}

	public String getNameOfBank() {
		return this.nameOfBank;
	}

	public void setNameOfBank(String nameOfBank) {
		this.nameOfBank = nameOfBank;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

}